import { createStore } from 'vuex';
import createPersistedState from 'vuex-persistedstate';
import user from './modules/user';
import cart from './modules/cart';
import category from './modules/category';
// 创建vuex仓库并导出
export default createStore({
    modules: {
        user,
        cart,
        category,
    },
    plugins: [createPersistedState()]
})